import React from 'react'

const Component = () =>
{
    //获取当前访问的路由地址  js location.pathname
    const {pathname} = useLocation()
    const SwitchTab = (url: string) => React.navigate(url)

    return (
        <>
            <div className="footer">
                <React.UI.TabBar activeKey={pathname} onChange={SwitchTab}>
                    <React.UI.TabBar.Item key={"/"} icon={<React.ICON.AppOutline />} title={"首页"} />
                    <React.UI.TabBar.Item key={"/business"} icon={<React.ICON.UserOutline />} title={"我的"} />
                </React.UI.TabBar>
            </div>
        </>
    )
}

export default Component